﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChessBoard
{
    class Program
    {
        const int defaultField = 8;
        static void Main(string[] args)
        {
            int fieldSize = 1000;
            if (fieldSize > Console.WindowWidth || fieldSize < 0)
            {
                fieldSize = defaultField;           
            }
            for (int i = 0; i < fieldSize; i++)
            {
                for (int j = 0; j < fieldSize; j++)
                {
                    Console.Write(((i + j) % 2 > 0) ? " " : "*");
                }
                Console.WriteLine();
            }
            Console.Read();
        }
    }
}
